/*
 * @Author: wangdengduo
 * @Date: 2023-05-06 12:52:39
 * @LastEditors: wangdengduo
 * @LastEditTime: 2023-05-09 18:51:48
 * @FilePath: \todo-list\src\App.js
 * @Description:
 */
import "./App.css";
import { ConfigProvider } from "antd";
import { HashRouter, useRoutes } from "react-router-dom";
import routes from "./router";

function RouteElement() {
  const element = useRoutes(routes);
  return element;
}

function App() {
  return (
    <HashRouter>
      <ConfigProvider>
        <RouteElement />
      </ConfigProvider>
    </HashRouter>
  );
}

export default App;
